ARG parent
FROM ${parent}

ENV APP_JVM=openj9
USER root
#ADD --chown=www:www *.tar.gz /opt/appdata/pack
ADD --chown=www:www mnt /opt/appdata/pack
ADD --chown=www:www *.sh /opt/appdata/pack

#USER root
#RUN chown -R www:www /opt/appdata
#USER www

RUN chmod +x /opt/appdata/pack/*.sh
USER www
ENTRYPOINT ["sh", "/opt/appdata/pack/deploy.sh"]